/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.grid-functions {
  display: grid;
  place-items: center;
  background-image: linear-gradient(
    180deg,
    rgba(10, 89, 247, 0.1),
    rgba(255, 255, 255, 1) 33.292%
  );
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  --columns: 4;
  column-gap: calc((100% - (48px * var(--columns))) / (var(--columns) - 1));
  margin:0 var(--app-padding);
}
@media (320px<=width<600px) {
  .grid-functions {
    --columns: 4;
    height: 156px;
    grid-template-columns: repeat(var(--columns), 48px);
    row-gap: 12px;
    padding: 12px;
  }
}
@media (600px<=width<840px) {
  .grid-functions {
    --columns: 6;
    height: 176px;
    grid-template-columns: repeat(var(--columns), 48px);
    row-gap: 20px;
    padding: 16px 24px;
  }
}
@media (840px<=width) {
  .grid-functions {
    --columns: 8;
    height: 200px;
    grid-template-columns: repeat(var(--columns), 48px);
    row-gap: 24px;
    padding: 24px 36px;
  }
}
